package com.github.prontera.persistence;

import java.util.List;

import com.github.prontera.MyBatisRepository;
import com.github.prontera.domain.TalentOrder;

/**
 * 角色Dao
 */
@MyBatisRepository
public interface TalentOrderMapper extends CrudMapper<TalentOrder>{

	/**
	 * @param 根据订单号修改订单信息
	 * @param TalentOrder
	 * @param 
	 * @return
	 */
	int updateBytradeNo(TalentOrder oOrder);
	
	
	List<TalentOrder> findClientOrder(TalentOrder talentOrder);
	
	
	List<TalentOrder> findAcceptClientOrder(TalentOrder talentOrder);
	
	/**
	 * 查找超时订单
	 */
	List<TalentOrder> findTimeoutOrder();
	/**
	 * 查找未支付得超时订单
	 */
	List<TalentOrder> findNotStartTimeoutOrder();
	/**
	 * 查找未缺人(消费者)得超时订单
	 */
	List<TalentOrder> findNotEndTimeoutOrder();


	Integer updateByTradeNo(TalentOrder talentOrder);
	
}
